package com.eastfair.pay.api;

import com.eastfair.common.dto.JYMainnoResultDTO;
import com.eastfair.common.req.JYReq;
import com.eastfair.core.base.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "common-service/finance")
public interface FinanceFeign {
    /**
     * 同步记录
     *
     * @param req
     */
    @PostMapping("/sync")
    public R<List<JYMainnoResultDTO>> sync(@RequestBody JYReq req);
}
